package com.example.forumsystem.demos.web.model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;
@ApiModel("文章信息")
@Data
public class ArticleInfo {
    private Long id;

    private Long boardId;

    private Long userId;

    private String title;

    private Integer visitCount;

    private Integer replyCount;

    private Integer likeCount;

    private Byte state;

    private Byte deleteState;

    private Date createTime;

    private Date updateTime;

    private String content;
    @ApiModelProperty("文章中包含的用户信息")
    private UserInfo user;

    @ApiModelProperty("文章所属的板块信息")
    private BoardInfo board;

    @ApiModelProperty("是否是文章的作者")
    private boolean isOwn;
}